-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log error details via Display instead of Debug #249
Conversation
Ah, good use of I like "permanent failure or unavailable" more then "permanent failure", but shorter is a little neater here. Example result:
|
Reminder to self: |
Specifically, check:
|
Updated; this affects EntropyRng logging significantly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good to me! Have you made all the changes you wanted?
For now, though there might be some more tweaks after #252 merges. |
Log error details via Display instead of Debug
Compare current
Debug
output:verses prettier
Display
output:I checked implementations of
Display
for error types in the main Rust repo and all of them covered all their state I think; but none had a situation like this with optional cause. So thisDisplay
implementation seems reasonable to me.(Note that the condition is a bit funky due to
no_std
not having a cause at all.)